<template>
  <view :style="themeColor">
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center suggestionLst_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub suggestionLst_fd0_0'>
          <view class='flex flex-wrap align-center suggestionLst_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  suggestionLst_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='suggestionLst_fd0_0_c1_c0'>{{$t('历史反馈')}}</text>
          </view>
          <view class='flex flex-wrap align-center justify-end suggestionLst_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>

      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout suggestionLst_flex_1">
        <template v-for='(item,key0) in dataList'>
          <view class='flex flex-wrap align-start suggestionLst_fd1_0' :key='key0'>
            <image class='suggestionLst_fd1_0_c0' mode="aspectFit" :src='item.avatar'></image>
              <view class='flex flex-direction flex-wrap align-stretch flex-sub' >
                  <view class='flex flex-direction flex-wrap align-stretch suggestionLst_fd1_0_c1_c0'>
                    <view class='flex-sub'>
                      <text class='suggestionLst_fd1_0_c1_c0_c0_c0'>{{item.body}}</text>
                    </view>
                  </view>
                <view class='flex flex-wrap align-center suggestionLst_fd1_0_c1_c1' v-if="item.thumb.length">
                  <template v-for='(child,key1) in item.thumb'>
                    <view class='flex flex-wrap align-center suggestionLst_fd1_0_c1_c1_c0'>
                      <image class='suggestionLst_fd1_0_c1_c1_c0_c0' mode="aspectFill" :src='child'></image>
                    </view>
                    </template>
                </view>
                <view class='flex flex-wrap align-center suggestionLst_fd1_0_c1_c2'>
                  <text class='suggestionLst_fd1_0_c1_c2_c0'>{{$t('反馈类型')}}：</text>
                  <text class='suggestionLst_fd1_0_c1_c2_c0'>{{item.type}}</text>
                </view>
                <view class='flex flex-wrap align-center suggestionLst_fd1_0_c1_c2'>
                  <text class='suggestionLst_fd1_0_c1_c2_c0'>{{$t('反馈时间')}}：</text>
                  <text class='suggestionLst_fd1_0_c1_c2_c0'>{{item.create_time}}</text>
                </view>
                <view class='flex flex-wrap align-center suggestionLst_fd1_0_c1_c4' v-if="item.is_replay=='2'">
                  <text class='suggestionLst_fd1_0_c1_c4_c0'>{{$t('平台回复：')}}</text>
                  <text class='suggestionLst_fd1_0_c1_c4_c1'>{{item.replay}}</text>
                </view>
              </view>


          </view>
        </template>

      </view>
      <fu-empty-ui v-if="dataList.length==0"></fu-empty-ui>



    </view>
  </view>
</template>
<script>
  import {
    validate
  } from '@/common/utils/validate.js'
  export default {
    components: {},


    data() {
      return {
        "dataList": []
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {
      this.getDataFunc()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {
      this.getDataFunc()
    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      //获取反馈信息
      async getDataFunc() {
        //请求方法
        //数据验证

        let datadataList = await this.$api.get(global.apiUrls.post641472eb35317, {
          user_type: '1'
        });

        if (datadataList.data.code != 1) {
          this.$message.info(datadataList.data.msg);
          return
        }
        let infodataList = datadataList.data.data;
        this.dataList = infodataList.data

      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: rgba(255, 255, 255, 1);
    background-size: 100% auto;
  }

  .suggestionLst_flex_0 {
    border-bottom: 1px solid #eee;
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .suggestionLst_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333;
    line-height: 88rpx;
  }

  .suggestionLst_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .suggestionLst_fd0_0_c0 {
    width: 120rpx;
  }

  .suggestionLst_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .suggestionLst_flex_1 {
    background: rgba(255, 255, 255, 1);
    padding: 0rpx 0rpx 0rpx 24rpx;
    background-size: 100% auto !important;
  }

  .suggestionLst_fd1_0_c1_c4_c1 {
    line-height: 46rpx;
    font-size: 28rpx;
    font-weight: 400;
    color: #333333;
  }

  .suggestionLst_fd1_0_c1_c4_c0 {
    line-height: 46rpx;
    font-size: 28rpx;
    font-weight: 400;
    color: rgba(73, 106, 157, 1);
  }

  .suggestionLst_fd1_0_c1_c4 {
    background: rgba(248, 248, 248, 1);
    padding: 24rpx 16rpx 24rpx 16rpx;
    margin: 16rpx 0rpx 0rpx 0rpx;
    border-radius: 16rpx 16rpx 16rpx 16rpx;
    background-size: 100% auto !important;
  }

  .suggestionLst_fd1_0_c1_c2_c0 {
    line-height: 46rpx;
    font-size: 24rpx;
    font-weight: 400;
    color: #999999;
  }

  .suggestionLst_fd1_0_c1_c2 {
    margin: 0rpx 0rpx 16rpx 0rpx;
    padding: 0rpx 0rpx 0rpx 16rpx;
  }

  .suggestionLst_fd1_0_c1_c1_c0_c0 {
    width: 180rpx;
    height: 180rpx;
    border-radius: 16rpx 16rpx 16rpx 16rpx;
  }

  .suggestionLst_fd1_0_c1_c1_c0 {
    margin: 12rpx 15rpx 12rpx 15rpx;
  }

  .suggestionLst_fd1_0_c1_c1 {
    padding: 12rpx 0rpx 0rpx 0rpx;
  }

  .suggestionLst_fd1_0_c1_c0_c0_c0 {
    line-height: 46rpx;
    font-size: 28rpx;
    font-weight: 400;
    color: #333333;
    padding: 0rpx 32rpx 0rpx 0rpx;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }

  .suggestionLst_fd1_0_c1_c0 {
    position: relative;
    padding: 0rpx 0rpx 0rpx 16rpx;
  }

  .suggestionLst_fd1_0_c0 {
    width: 72rpx;
    height: 72rpx;
    border-radius: 50rpx 50rpx 50rpx 50rpx;
  }

  .suggestionLst_fd1_0 {
    border-bottom: 1px solid #eee;
    padding: 24rpx 24rpx 32rpx 0rpx;
  }
</style>
